package com.spstudio.iforward.end.bean;


import java.io.Serializable;

import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

@SessionScoped
@Named
public class UserMenu implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1071638376749376969L;
	
	private String groupId;
	private String menuId;
	
	public boolean match(String id){
		return id.equals(groupId);
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public void selectM1G1(){
		groupId = "m1-g1";
	}
	
	public void selectM1G2(){
		groupId = "m1-g2";
	}
	
	public void selectM1G3(){
		groupId = "m1-g3";
	}
}
